package com.gmp.rooms.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gmp.common.annotation.Excel;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

@Data
@Getter
@Setter
public class EquipmentInspectionQueryVo {

    // 新增字段：用于树形结构
    private String type; // 类型："厂房" 或 "设备"
    private List<EquipmentInspectionQueryVo> children; // 子节点（设备列表）

    @Excel(name = "设备巡检记录ID")
    private String id;

    /**
     * 厂房ID
     */
    @Excel(name = "厂房ID")
    private String roomCode;


    private String roomName;

    /**
     * 设备ID
     */
    @Excel(name = "设备ID")
    private String facilityCode;

    private String facilityName;

    /**
     * 评估内容
     */
    @Excel(name = "评估内容")
    private String evaluationContent;

    /**
     * 状态，如：正常、异常、待维修等
     */
    @Excel(name = "状态，如：正常、异常、待维修等")
    private String status;

    /**
     * 巡检时间，默认当前时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "巡检时间，默认当前时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionTime;

    /**
     * 巡检人员
     */
    @Excel(name = "巡检人员")
    private String inspector;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

}
